﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ConnectView.xaml.cs" company="R.V.Kasner">
//   Copyright © 2011 R.V.Kasner
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace Owen.Terminal.View
{
    using Owen.Terminal.ViewModel;

    /// <summary>
    ///   Логика взаимодействия для ConnectView.xaml
    /// </summary>
    public partial class ConnectView : IConnectView
    {
        public ConnectView()
        {
            this.InitializeComponent();
        }

        public IConnectViewModel ViewModel
        {
            get
            {
                return this.DataContext as IConnectViewModel;
            }

            set
            {
                this.DataContext = value;
            }
        }

        IViewModel IView.ViewModel
        {
            get
            {
                return this.ViewModel;
            }

            set
            {
                this.ViewModel = value as IConnectViewModel;
            }
        }
    }
}